﻿using System;

namespace Break
{
    class Program
    {
        static void Main(string[] args)
        {
            int n;
            string day;

            while (true)
            {
                n = int.Parse(Console.ReadLine());
                day = GetDayOfWeek(n);

                Console.WriteLine(day);

                if (day == "Unknown")
                {
                    int timeout = 2;
                    Console.WriteLine("Console will close after {0} second.", timeout);
                    System.Threading.Thread.Sleep(timeout * 1000);
                    break;
                }
            }
        }

        static string GetDayOfWeek(int n)
        {
            string dayOfWeek;

            switch (n)
            {
                case 1:
                    dayOfWeek = "Monday";
                    break;
                case 2:
                    dayOfWeek = "Tuesday";
                    break;
                case 3:
                    dayOfWeek = "Wednesday";
                    break;
                case 4:
                    dayOfWeek = "Thursday";
                    break;
                case 5:
                    dayOfWeek = "Friday";
                    break;
                case 6:
                case 7:
                    dayOfWeek = "Weekend";
                    break;
                default:
                    dayOfWeek = "Unknown";
                    break;
            }

            return dayOfWeek;
        }
    }
}
